Skip to content

Allow __init__ and __new__ to return NoReturn - #13480

Merged
hauntsaninja merged 6 commits into
python:masterfrom
iyanging:noreturn
Aug 23, 2022
Merged

hauntsaninja merged 6 commits into
python:masterfrom
iyanging:noreturn

Conversation

@iyanging

Copy link
Copy Markdown
Contributor

Description

Here is a alternative PR of #11216, which merged master. All respects go to @BvB93.

This PR is useful when the original author has no spare time to do merge.

Also, I'm happy to make the PR directly to the original fork.

@BvB93 @hauntsaninja

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pylint (https://github.com/pycqa/pylint)
+ pylint/__init__.py:60: error: Unused "type: ignore" comment
+ pylint/pyreverse/main.py:214: error: Unused "type: ignore" comment

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and thank you BvB93!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants